<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			#d1,#d2{
				height: 400px;
				width: 500px;
				border: 20px solid gold;
				padding: 50px;
				margin: 5px;
			}
			#d1{
				box-sizing: border-box; 
			}
			#d1 p{
				background-color: brown;
				height: 200px;
				width: 300px;
				border: 100px solid green;
				box-sizing: inherit;
			}
		</style>
	</head>
	<body>
		<div id="d1">
			<p>1</p>
		</div>
		<div id="d2"></div>
	</body>
</html>
